package com.iking.housekeeping.entity.role;

import java.util.Date;

/**
 * 实体类
 * 
 * @author 秦甫杰
 *
 */
public class Role {

	/**
	 * 角色ID
	 */
	private String fId;

	/**
	 * 角色名称
	 */
	private String fRoleName;

	/**
	 * 角色的状态
	 */
	private Integer fStatus;

	/**
	 * 角色的创建时间
	 */
	private Date fGmtCreate;

	/**
	 * 角色更新的时间
	 */
	private Date fGmtModified;

	/**
	 * 角色code
	 */
	private String roleCode;

	/**
	 * 父级角色的code
	 */
	private String rolePCode;

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRolePCode() {
		return rolePCode;
	}

	public void setRolePCode(String rolePCode) {
		this.rolePCode = rolePCode;
	}

	public Role() {
		// TODO Auto-generated constructor stub
	}

	public Role(String fRoleName, String fid,String rolePCode) {
		Date now = new Date();
		this.fRoleName = fRoleName;
		this.fId = fid;
		this.rolePCode=rolePCode;
		this.setfStatus(0);
		this.setfGmtCreate(now);
		this.setfGmtModified(now);
	}

	public String getfId() {
		return fId;
	}

	public void setfId(String fId) {
		this.fId = fId;
	}

	public String getfRoleName() {
		return fRoleName;
	}

	public void setfRoleName(String fRoleName) {
		this.fRoleName = fRoleName == null ? null : fRoleName.trim();
	}

	public Integer getfStatus() {
		return fStatus;
	}

	public void setfStatus(Integer fStatus) {
		this.fStatus = fStatus;
	}

	public Date getfGmtCreate() {
		return fGmtCreate;
	}

	public void setfGmtCreate(Date fGmtCreate) {
		this.fGmtCreate = fGmtCreate;
	}

	public Date getfGmtModified() {
		return fGmtModified;
	}

	public void setfGmtModified(Date fGmtModified) {
		this.fGmtModified = fGmtModified;
	}

}